<%@ page language="java" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
				 com.scalar.chiptrack.commons.Constants"%>
<%@ page import="com.scalar.chiptrack.operations.release.forms.AssmReleaseForm" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/assmRelease.do" />

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<HTML>
<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet"></HEAD>
<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></script>

<SCRIPT language="JavaScript">
function submitAddMore()
{
	document.assmReleaseForm.action = '<%=chipTracContext%>/assmRelease.do?action=addmore';
	document.assmReleaseForm.submit();
}

var dateElement = "";
function openCalendar( dateValue )
{
    dateElement = dateValue;
    newWindow = window.open('<%=chipTracContext%>/jsp/includes/calendar.html','optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=180,height=440,resizable=no');
    newWindow.focus();
}

function assignDate( passedValue )
{
    dateElement.value=passedValue;
    window.focus();
}
function sendMail( assmReleaseId )
{
    newWindow = window.open ('<%=chipTracContext%>/sendAssmMail.do?type=Assembly&assmReleaseId=' + assmReleaseId,'sendMailPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=800,height=550,resizable=yes');
    newWindow.focus();
}

function sendMail ( releaseId, category, vendor )
{
    newWindow = window.open ('<%=chipTracContext%>/releaseSendMail.do?releaseId=' + releaseId + '&vendor='+vendor+'&Category='+category+'&processType=Assembly','assmSendMailPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=800,height=550,resizable=yes');
    newWindow.focus();
}
        
function printView( assmReleaseId )
{
	newWindow = window.open ('<%=chipTracContext%>/assmRelease.do?action=printerFriendly&assmReleaseId='+assmReleaseId,'printerFreindlyPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=800,height=550,resizable=yes');
}

function openAuditTrail( releaseId, releaseNumber )
{
    newWindow=window.open('<%=chipTracContext%>/releaseAuditTrail.do?action=auditTrail&releaseId='+releaseId+'&releaseNumber='+releaseNumber+'&type=<%=Constants.LOCATION_TYPE_ASSEMBLY%>','releaseAuditTrailPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=600,height=700,left=100,top=50,resizable=yes');
    newWindow.moveTo(100,50);
    newWindow.focus();
}
</SCRIPT>

<BODY bgColor="#ffffff" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">

<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<table cellSpacing="0" cellPadding="0" width="100%" border="0">
    <tr>
	    <td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>
            <!-- Side Navigation start -->
	        <%@ include file="/jsp/operations/releaseMenu.jsp" %>
	        <!-- end of the side navigations -->
        </td>
	    <td bgcolor="#ffffff"><img height="9" src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width="8"></td>
	    <td bgcolor="#ffffff"><img height="480" src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width="2"></td>
	    <td valign="top" width="100%">
            <img height="1" src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width="500" border="0">
            <br>
            <html:form action="/assmRelease.do" method="POST">
            <table width="95%" align="right" cellpadding="2" cellspacing="2" border="0">
                <tr>
                    <td colspan="4" class="NArialW" align="center">&nbsp;&nbsp;&nbsp;Assembly Release</td>
                </tr>
                <tr><td colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td colspan='2' align="right"  class="NArialS">
                        <A href="javascript:printView('<bean:write name="assmReleaseForm" property="assmReleaseId"/>');"onMouseOver="window.status='Click for Printer Friendly Version';return true" onMouseOut="window.status='';return true"><B>[Printer-Friendly]</B></A>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td colspan='2' align="left"  class="NArialS">
                        <%--<A href="javascript:sendMail('<bean:write name="assmReleaseForm" property="assmReleaseId"/>');"onMouseOver="window.status='Click to Email This Assembly Release';return true" onMouseOut="window.status='';return true"><B>[E-mail this Assembly Release]</B></A>--%>
                        <a href="javascript:sendMail('<nested:write name="assmReleaseForm" property="assmReleaseId"/>','<nested:write name="assmReleaseForm" property="requestType"/>','<nested:write name="assmReleaseForm" property="vendorName"/>');" title='Click to Mail Assm Release Instructions'><B>[E-mail this Assembly Release]</B></a>
                    </td>
                </tr>
                <logic:equal name="showMessage" value="TRUE">
                <tr><td colspan="4" align='left'><font class='NArialS'color='blue'><b><%=Constants.NO_MODIFY_RIGHTS %></b></font></td></tr>
                </logic:equal>
                <tr><td colspan='4' align="left" class='NArialL'>&nbsp;<FONT id="errors" color='FF0000'></font></td></TR>
                <tr><td colspan='4' class="NArialL"><chiptrack:errors styleClass="NArialL"/></td></tr>
			    <tr><td colspan='4' class="NArialL"><chiptrack:info styleClass="NArialL"/></td></tr>
                <tr><td colspan='4' class="NArialL">&nbsp;</td></tr>
                <tr>
                    <td colspan='4'>
                        <html:hidden name="assmReleaseForm" property="assmReleaseId"/>
                        <html:hidden name="assmReleaseForm" property="customerId"/>
                        <html:hidden name="assmReleaseForm" property="processStep_id"/>
                        <html:hidden name="assmReleaseForm" property="fromLocation_id"/>
                        <html:hidden name="assmReleaseForm" property="toLocation_id"/>
                        <html:hidden name="assmReleaseForm" property="totalDieQtyPulled"/>
                        <html:hidden name="assmReleaseForm" property="totalDieQtyToBuild"/>
                        <html:hidden name="assmReleaseForm" property="totalBOMDieQtyPulled"/>
                        <html:hidden name="assmReleaseForm" property="shippingAddress_id"/>
                        <html:hidden name="assmReleaseForm" property="status"/>
                        <html:hidden name="assmReleaseForm" property="diesPerPackage"/>
                    </td>
                </tr>
                <tr>
                    <td class="NArialL" width="25%">
                        <bean:message key="label.operation.release.assm.ReleaseNo"/> :<font color=red>*</font>
                    </td>
                    <td class="NArialL" width="25%">

                        <bean:write name="assmReleaseForm" property="assmReleaseNo"/>
                    </td>
                    <td class="NArialL" width="20%">
                        <bean:message key="label.operation.release.assm.ReleaseDate"/>:<font color=red>*</font>
                    </td>
                    <td class="NArialL" width="25%">
                        <bean:write name="assmReleaseForm" property="assmReleaseDate"/>
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Customer Name:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="customerName"/>
                    </td>
                    <td class="NArialL">
                        <bean:message key="label.operation.release.assm.PONo"/>:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="poNumber" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Revision No:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="assmRevisionNumber" />
                    </td>
                    <td class="NArialL">
                        Assembly Vendor:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="vendorName" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Request Type:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="requestType" />
                    </td>

                    <td class="NArialL">
                        Turn Key:
                    </td>
                    <td class="NArialL">
                        <html:checkbox property="turnKey" styleClass="txfield" disabled="true"/> &nbsp; <bean:write name="assmReleaseForm" property="turnKeyLabel" />
                    </td>
                </tr>
                <%boolean even = true; %>
                <bean:size id="fieldDisplayListSize" name="fieldDisplayList"/>
                <logic:greaterThan value="0" name="fieldDisplayListSize">
                <logic:iterate name="fieldDisplayList" id="fileldDisplay" indexId="idIndex" type="com.scalar.chiptrack.commons.FieldProperty" >
                <% if( even ) { %>
                <TR>
                    <% }
                    even = !even;
                    %>

                    <td class="NArialL">
                    <bean:write name="fileldDisplay" property="fieldLabel"/> :
                    </td>
                    <td class="NArialL">
                    <bean:write name="fileldDisplay" property="fieldValue"/>
                    </td>
                    <%
                    if( even )
                    {
                    %>

                    </TR>
                    <%}%>
                </logic:iterate>
                   <%
                     if( !even ) {
                     %>
                        <TD class="NArialL">&nbsp;</TD>
                        <TD class="NArialL">&nbsp;</TD>

                     </TR>
                     <%
                     }
                     %>

                </logic:greaterThan>
                <tr><td colspan="4" class="NArialL">&nbsp;</td></tr>
                <tr>
                    <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                        <font class="NArialL"><font color="#FFFFFF">Release Info Assembly Vendor Contact Details</font></font>
                    </td>
                </tr>
                <tr><td colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='2'></td></tr>
                <tr>
                    <td class="NArialL">
                        Vendor Name:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="vendorName" />
                    </td>
                    <td class="NArialL">&nbsp;</td>
                    <td class="NArialL">&nbsp;</td>
                </tr>
                <bean:size id="vendorContListSize" name="vendorContactPersonList"/>
                <logic:greaterThan value="0" name="vendorContListSize">
                <logic:iterate name="vendorContactPersonList" id="vendorContactPerson" indexId="idIndex" type="com.scalar.chiptrack.operations.release.ContactPerson" >
                <tr>
                    <td class="NArialL">
                        Contact Person&nbsp;<%=idIndex.intValue()+1%>:
                    </td>
                    <td class="NArialL">
                        <bean:write name="vendorContactPerson" property="name" />
                    </td>
                    <td class="NArialL">
                        Contact Person Email&nbsp;<%=idIndex.intValue()+1%>:
                    </td>
                    <td class="NArialL">
                        <bean:write name="vendorContactPerson" property="email" />
                    </td>
                </tr>
                </logic:iterate>
                </logic:greaterThan>
                <logic:equal value="0" name="vendorContListSize">
                    <tr><td colspan="4" class="NArialL"><font color="red">Contact Details not found</font></td></tr>
                </logic:equal>
                <bean:define id="fromVendorId" name="assmReleaseForm" property="fromLocation_id"/>
                <logic:notEqual name="assmReleaseForm" property="toLocation_id" value='<%=fromVendorId.toString()%>'>
                <tr><td colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='2'></td></tr>
                <tr>
                    <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                        <font class="NArialL"><font color="#FFFFFF">Release Info Die Bank Vendor Contact Details</font></font>
                    </td>
                </tr>
                <tr><td colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='2'></td></tr>
                <tr>
                    <td class="NArialL">
                        Vendor Name:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="fromVendorName"/>
                    </td>
                    <td class="NArialL">&nbsp;</td>
                    <td class="NArialL">&nbsp;</td>
                </tr>
                <bean:size id="dbVendorContListSize" name="dieBankVendorContactPersonList"/>
                <logic:greaterThan value="0" name="vendorContListSize">
                <logic:iterate name="dieBankVendorContactPersonList" id="dbVendorContactPerson" indexId="idIndex" type="com.scalar.chiptrack.operations.release.ContactPerson" >
                <tr>
                    <td class="NArialL">
                        Contact Person&nbsp;<%=idIndex.intValue()+1%>:
                    </td>
                    <td class="NArialL">
                        <bean:write name="dbVendorContactPerson" property="name" />
                    </td>
                    <td class="NArialL">
                        Contact Person Email&nbsp;<%=idIndex.intValue()+1%>:
                    </td>
                    <td class="NArialL">
                        <bean:write name="dbVendorContactPerson" property="email" />
                    </td>
                </tr>
                </logic:iterate>
                </logic:greaterThan>
                <logic:equal value="0" name="dbVendorContListSize">
                    <tr><td colspan="4" class="NArialL"><font color="red">Contact Details not found</font></td></tr>
                </logic:equal>
                </logic:notEqual>
                <tr>
                    <td class="NArialL">
                        <br>Die Bank Ship Date:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="dbShipDate"/>
                    </td>
                    <td class="NArialL">&nbsp;</td>
                    <td class="NArialL">&nbsp;</td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Die Bank Special Instructions:
                    </td>
                    <td class="NArialL" colspan="3">
                        <html:textarea name="assmReleaseForm" property="dbInstructions" styleClass="txfield" rows="4" cols="113" disabled="true"/>
                    </td>
                    <td class="NArialL">&nbsp;</td>
                    <td class="NArialL">&nbsp;</td>
                </tr>
                <tr><td colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='2'></td></tr>
                <tr>
                    <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                        <font class="NArialL"><font color="#FFFFFF"><bean:message key="label.operation.release.internalContactPersons"/></font></font>
                    </td>
                </tr>
                <tr><td colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='2'></td></tr>
                <bean:size id="contactPersonsSize" name="contactPersons"/>
                <logic:greaterThan value="0" name="contactPersonsSize">
                <logic:iterate name="contactPersons" id="contactPerson" indexId="idIndex" type="com.scalar.chiptrack.operations.release.ContactPerson" >
                <tr>
                    <td class="NArialL">
                        Contact Person&nbsp;<%=idIndex.intValue()+1%>:
                    </td>
                    <td class="NArialL">
                        <bean:write name="contactPerson" property="name"  />
                    </td>
                    <td class="NArialL">
                        Contact Person Email&nbsp;<%=idIndex.intValue()+1%>:
                    </td>
                    <td class="NArialL">
                        <bean:write name="contactPerson" property="email" />
                    </td>
                </tr>
                </logic:iterate>
                </logic:greaterThan>
                <logic:equal value="0" name="contactPersonsSize">
                    <tr><td colspan="4" class="NArialL"><font color="red">Contact Details not found</font></td></tr>
                </logic:equal>
                <logic:notEqual value="-1" name="assmReleaseForm" property="assmReleaseId">
                <tr><td colspan="4" class="NArialL" width="100%">&nbsp;</td></tr>
                <tr>
                    <td colspan="4" class="NArialL" width="100%">
                        Please Click here for <a href="javascript:openAuditTrail('<bean:write name="assmReleaseForm" property="assmReleaseId"/>','<bean:write name="assmReleaseForm" property="assmReleaseNo"/>')">Audit Trails</a>
                    </td>
                </tr>
                </logic:notEqual>
                <%
				if ( ConfigManager.isReleaseShowMarkingLines() )
                {
			    %>
                <tr><td colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='2'></td></tr>
                <TR>
                <TD width="100%" colspan='4' class="NArialL">
                    <TABLE width="100%" align="left" cellpadding="2" cellspacing="2" border="0">
                        <TR>
                            <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                                <font class="NArialL"><font color="#FFFFFF"><B>Assembly Release Marking Specifications</B></font></font>
                            </td>
                        </TR>
                        <TR>
                            <TD class="NArialL" nowrap>First Line:</TD>
                            <TD colspan="2">&nbsp;</td>
                            <TD ALIGN='left' class="NArialL">
                                <bean:write  name="assmReleaseForm" property="markingFirstLine" filter="false"/>&nbsp;
                            </TD>
                        </TR>
                        <TR>
                            <TD class="NArialL" nowrap>Second Line:</TD>
                            <TD colspan="2">&nbsp;</td>
                            <TD ALIGN='left' class="NArialL">
                                <bean:write  name="assmReleaseForm" property="markingSecondLine" filter="false"/>&nbsp;
                            </TD>
                         </TR>
                         <TR>
                            <TD class="NArialL" nowrap>Third Line:</TD>
                            <TD colspan="2">&nbsp;</td>
                            <TD ALIGN='left' class="NArialL">
                                <bean:write  name="assmReleaseForm" property="markingThirdLine" filter="false"/>&nbsp;
                            </TD>
                         </TR>
                         <TR>
                            <TD CLASS='NArialL' nowrap>Fourth Line:</TD>
                            <TD colspan="2">&nbsp;</td>
                            <TD ALIGN='left' CLASS='NArialL'>
                                <bean:write  name="assmReleaseForm" property="markingFourthLine" filter="false"/>&nbsp;
                            </TD>
                         </TR>
                         <TR>
                            <TD class="NArialL" nowrap>Fifth Line:</TD>
                            <TD colspan="2">&nbsp;</td>
                            <TD ALIGN='left' class="NArialL">
                                <bean:write  name="assmReleaseForm" property="markingFifthLine" filter="false"/>&nbsp;
                            </TD>
                         </TR>
                         <TR>
                            <TD class="NArialL" nowrap>Sixth Line:</TD>
                            <TD colspan="2">&nbsp;</td>
                            <TD ALIGN='left' class="NArialL">
                                <bean:write  name="assmReleaseForm" property="markingSixthLine" filter="false"/>&nbsp;
                            </TD>
                         </TR>
                    </TABLE>
                </TD>
            </TR>
			<%
                }
			%>
                <tr><td colspan='4' align="left" class='NArialL' width="100%">&nbsp;<FONT id="lot_errors" color='FF0000'></font></td></tr>
                <tr><td bgcolor="#993333" colspan='4' class="NArialL" align="left"><font color="#FFFFFF">Lot Information / Other</font></td></tr>
                <tr>
                    <td width="100%" colspan='4' class="NArialL">
                        <table width="75%" align="left" cellpadding="2" cellspacing="2" border="0">

                            <tr bgcolor="#993333">
                                <td align="center" class="NArialL"><font color="#FFFFFF">Wafer Id</font></td>
                                <td nowrap align="center" class="NArialL"><font color="#FFFFFF"><bean:message key="label.operation.release.assm.partNumber"/></font></td>
                                <td nowrap align="center" class="NArialL"><font color="#FFFFFF">Fab Lot Number</font></td>
                                <logic:equal value="TRUE" name="showDieBankLotNo">
                                <td align="center" class="NArialL"><font color="#FFFFFF">Die Bank Lot#</font></td>
                                </logic:equal>
                                <td nowrap align="center" class="NArialL"><font color="#FFFFFF"><bean:message key="label.operation.release.assm.shippedLotNo"/></font></td>
                                <td align="center" class="NArialL"><font color="#FFFFFF">Qty Available</font></td>
                                <td align="center" class="NArialL"><font color="#FFFFFF">Qty Pulled</font></td>
                                <td align="center" class="NArialL"><font color="#FFFFFF">Qty To Build</font></td>
                                <logic:equal value="TRUE" name="showScreenPrintOrder">
                                <td align="center" class="NArialL"><font color="#FFFFFF">Screen Print Order</font></td>
                                </logic:equal>
                                <logic:equal value="TRUE" name="showBackGrindOrder">
                                <td align="center" class="NArialL"><font color="#FFFFFF">Back Grind Order</font></td>
                                </logic:equal>
                            </tr>
                            <%
                               AssmReleaseForm form = (AssmReleaseForm)session.getAttribute("assmReleaseForm");
                                int diesperPkg = form.getDiesPerPackage();
                            %>
                            <nested:size id='lotSize' name='assmReleaseForm' property='releaseLotList'/>
                            <input type='hidden' name='lotSize' value='<%=lotSize%>'/>
                            <nested:iterate name="assmReleaseForm" property="releaseLotList" id="lot" type="com.scalar.chiptrack.operations.release.ReleaseLot" indexId="idx">
                            <nested:equal property="selected" value="true">
                            <%
                               String buildQty = Math.floor(lot.getQtyPulled()/diesperPkg) +"";
                            %>
                            <tr>
                                <td align="center" class="NArialL">
                                    <nested:write property="waferId"/>
                                    <nested:hidden property="lotId"/>
                                </td>
                                <td align="center" class="NArialL">
                                    <bean:write name='assmReleaseForm' property="dieBankProductName"/>
                                </td>
                                <td align="center" class="NArialL">
                                    <nested:write property="fabLotNumber" />
                                </td>
                                <logic:equal value="TRUE" name="showDieBankLotNo">
                                <td align="center" class="NArialL">
                                    <nested:write property="lotNumber" />
                                </td>
                                </logic:equal>
                                <td align="center" class="NArialL">
                                    <nested:write property="shippedLotNumber" />
                                </td>
                                <%--<td class="NArialL">
                                    <nested:write property="binInfoIncludingDownBin" />
                                </td>--%>
                                <td align="center" class="NArialL">
                                    <nested:write property="qtyAvailable" />
                                </td>
                                <td align="center" class="NArialL">
                                    <nested:write property="qtyPulled" />
                                </td>
                                <td align="center" class="NArialL">
                                      <%out.println(buildQty.substring(0, buildQty.indexOf(".") ) );%>
                                </td>
                                <logic:equal value="TRUE" name="showScreenPrintOrder">
                                <td align="center" class="NArialL">
                                    <bean:write name="assmReleaseForm" property="screenPrintOrder"/>
                                </td>
                                </logic:equal>
                                <logic:equal value="TRUE" name="showBackGrindOrder">
                                <td align="center" class="NArialL">
                                    <bean:write name="assmReleaseForm" property="backGrindOrder"/>
                                </td>
                                </logic:equal>
                            </tr>
                            </nested:equal>    
                            </nested:iterate>
                        </table>
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='5'></td></tr>
                <TR><TD colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></TD></TR>
                <logic:equal name="assmReleaseForm" property="bomLotAvailable" value="true">
                <TR><TD colspan='4' bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.operation.release.assm.BOMLot" /> Lot Information</font></TD></TR>
                <tr>
                    <td colspan='4'>
                        <table width="55%">
                            <tr>
                                <td width="25%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF"><bean:message key="label.operation.release.assm.BOMLot" /> Part Number</font></font></td>
                                <td width="25%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Lot Number</font></font></td>
                                <%
                                    if ( ConfigManager.isBomPullingByWaferId() )
                                    {
                                %>
                                <td width="25%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Wafer Id</font></font></td>
                                <%  } %>
                                <td width="25%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Quantity Pulled</font></font></td>
                            </tr>
                            <nested:iterate name="assmReleaseForm" property="bomLotInventoryList" id="lot" type="com.scalar.chiptrack.operations.release.ReleaseLot">
                            <nested:equal property="selected" value="true">
                            <tr>
                                <nested:hidden property="lotId"/>
                                <td  align="center" class="NArialL">
                                    <nested:write property="bomPartNumber"/>
                                </td>
                                <td align="center" class="NArialL">
                                    <nested:write property="lotNumber"/>
                                </td>
                                <%
                                    if ( ConfigManager.isBomPullingByWaferId() )
                                    {
                                %>
                                        <td align="center" class="NArialL"><nested:write property="waferId"/></td>
                                <%  } %>
                                <td class="NArialL" align="right">
                                    <nested:write property="qtyPulled"/>
                                </td>
                            </tr>
                            </nested:equal>
                            </nested:iterate>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="NArialL" nowrap>
                        Wafer Map/Blind Build for <bean:message key="label.operation.release.assm.BOMLot" /> :
                    </td>
                    <td class="bodyText">
                        <bean:write name="assmReleaseForm" property="waferMapOrInkedForBom"/>
                    </td>
                    <td class="NArialL"colspan='2'>&nbsp;</td>
                </tr>
                <TR><TD colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='5'></TD></TR>
                </logic:equal>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>

                <tr>
                    <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                        <font class="NArialL"><font color="#FFFFFF">Assembly Spec Information</font></font>
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        Select Spec File Name:
                    </td>
                    <td class="NArialL">
                        <html:select name="assmReleaseForm" property="fileAttachmentSpecFileId" styleClass="txfield" onchange="javascript:loadSelectedValues();" style="width:200px" disabled="true">
                            <html:option value="-1">--Select Spec File Name--</html:option>
                            <html:options collection="attachedSpecFileOneList" property="value" labelProperty="label"/>
                        </html:select>
                    </td>
                    <td class="NArialL">
                        Assembly Spec Rev No:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="assmSpecFileRevNo" />
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        <bean:message key="label.operation.release.assm.diagramOne"/>:
                    </td>
                    <td class="NArialL">
                        &nbsp;<a href="<%=chipTracContext%><%=ConfigManager.getSpecFilePathContext()%><bean:write name="assmReleaseForm" property="specPhysicalFileNameEncoded"/>" target="_newWindow" onMouseOver="window.status='Please right-click & choose Save target as';return true"onmouseout="window.status='';return true" title="Please right-click & choose Save target as"><bean:write name="assmReleaseForm" property="physicalFileName"/></a>
                    </td>
                    <td class="NArialL">
                        &nbsp;<%--<bean:message key="label.operation.release.assm.diagramTwo"/>:--%>
                    </td>
                    <td class="NArialL">
                        &nbsp;<%--<a href="<%=chipTracContext%><%=ConfigManager.getSpecFilePathContext()%><bean:write name="assmReleaseForm"  property="ceramicSpecPhysicalFileNameEncoded"/>" target="_newWindow" onMouseOver="window.status='Please right-click & choose Save target as';return true"onmouseout="window.status='';return true" title="Please right-click & choose Save target as"><bean:write name="assmReleaseForm"  property="physicalCeramicFileName"/></a>--%>
                    </td>
                </tr>
                <%--<tr>
                    <td class="NArialL">
                        Assembly Spec:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="assmSpecFileName" styleClass="txfield" maxlength='50' disabled="true"/>
                    </td>

                    <td class="NArialL">
                        Assembly Spec Rev No:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="assmSpecFileRevNo" styleClass="txfield" maxlength='50' disabled="true"/>
                    </td>
                </tr>--%>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <%--<logic:equal name="assmReleaseForm" property="turnKey" value="true">--%>
                <tr>
                    <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                        <font class="NArialL"><font color="#FFFFFF">Test Spec Information</font></font>
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        Test Location:
                    </td>
                    <td class="NArialL">
                        <html:select name="assmReleaseForm" property="testLocation_id" styleClass="txfield" style="width:145px" disabled="true">
                            <html:option value="-1">--Select Location--</html:option>
                            <html:options collection="testLocation" property="value" labelProperty="label"/>
                        </html:select>
                    </td>
                    <td class="NArialL">
                        Test PO Number:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="testPONumber" />
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        Select Spec File Name:
                    </td>
                    <td class="NArialL">
                        <html:select name="assmReleaseForm" property="fileAttachmentTestSpecFileId" styleClass="txfield" onchange="javascript:loadSelectedValues();"  style="width:200px"  disabled="true">
                            <html:option value="-1">--Select Spec File Name--</html:option>
                            <html:options collection="attachedSpecFileTestList" property="value" labelProperty="label"/>
                        </html:select>
                    </td>
                    <td class="NArialL">
                         Test Spec Rev:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="testRevisionNumber" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Test Expected Start Date:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="testExpectedStartDate" />
                    </td>
                    <td class="NArialL">&nbsp;</td>
                    <td class="NArialL">&nbsp;</td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Test Special Instructions:
                    </td>
                    <td class="NArialL" colspan="3">
                        <html:textarea name="assmReleaseForm" property="testInstructions" styleClass="txfield" rows="4" cols="113" disabled="true"/>
                    </td>
                    <td class="NArialL">&nbsp;</td>
                    <td class="NArialL">&nbsp;</td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <%--<tr>
                    <td class="NArialL">
                        Test Program Name:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="testProgramName" />
                    </td>
                    <td class="NArialL">
                        Test Program Rev No:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="testRevisionNumber" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Room Temp Test :
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="roomTestTemp" />
                    </td>
                    <td class="NArialL">
                        Hot Temp Test :
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="hotTempTest" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        QA Test:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="qaTest"/>
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                        <font class="NArialL"><font color="#FFFFFF">Freight Carrier</font></font>
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        Freight Carrier:<font color=red>*</font>
                    </td>
                    <td class="NArialL">
                        <html:select name="assmReleaseForm" property="shipperId"  styleClass="txfield" style="width:145px" disabled="true">
                            <html:option value="-1">--Select--</html:option>
                            <html:optionsCollection name="assmReleaseForm" property="shippersList" value="value" label="label"/>
                        </html:select>
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>                       9948194062 -- Pradeep
                </tr>--%>
                <%--</logic:equal>--%>
                <logic:greaterThan name="assmReleaseForm" property="tapeReelQty" value="0">
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                        <font class="NArialL"><font color="#FFFFFF">Reel Infomartion</font></font>
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        Reel Qty:
                    </td>
                    <td class="NArialL">
                        <bean:write name="assmReleaseForm" property="tapeReelQty" />
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                </tr>
                </logic:greaterThan>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <nested:nest property="shippingContactInfo">
                <tr>
                    <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                        <font class="NArialL"><font color="#FFFFFF">Shipping Information</font></font>
                        <html:hidden name="assmReleaseForm" property="shipperId" />
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        After Completion Vendor:<font color=red>*</font>
                    </td>
                    <td class="NArialL">
                        <nested:select property="vendorId" styleClass="txfield" onchange="javascript:loadSelectedValues()" style="width:145px" disabled="true">
                            <%--<nested:options property="locationsList" />--%>
                            <nested:optionsCollection property="locationsList" value="value"/>
                        </nested:select>
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Contact Person:
                    </td>
                    <td class="NArialL">
                        <nested:write property="contactPerson"/>
                    </td>
                    <td class="NArialL">
                        Email:
                    </td>
                    <td class="NArialL">
                        <nested:write property="email" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Phone:
                    </td>
                    <td class="NArialL">
                        <nested:write property="phoneNumber" />
                    </td>
                    <td class="NArialL">
                        Fax:
                    </td>
                    <td class="NArialL">
                        <nested:write property="faxNumber"/>
                    </td>
                </tr>
                <tr>
                    <td class="NArialL" align='left'>
                        Address1:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="address1" />
                    </td>
                    <td class="NArialL" align='left'>
                        Address2:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="address2" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL" align='left'>
                        Address3:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="address3" />
                    </td>
                    <td class="NArialL" align='left'>
                        Address4:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="address4"/>
                    </td>
                </tr>
                <tr>
                    <td class="NArialL" align='left'>
                        City:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="city" />
                    </td>
                    <td class="NArialL" align='left'>
                        State:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="state" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL" align='left'>
                        Country:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="country" />
                    </td>
                    <td class="NArialL" align='left'>
                        Zip:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="zipCode" />
                    </td>
                </tr>
                </nested:nest>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        Shipping Alerts:
                    </td>
                    <td class="NArialL" colspan="3">
                        <bean:write name="assmReleaseForm" property="shipAlerts" />
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        Special Instructions:
                    </td>
                    <td class="NArialL" colspan="3">
                        <bean:write name="assmReleaseForm" property="comments" />
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>               
		    </table>
	        </html:form>
            <!-- till here -->
            <BR><BR><BR>
        </td>
        <td bgcolor="#ffffff"><img height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></td>
    </tr>
</table>

<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->

</BODY>
</HTML>
